home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5917 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: interramp.com!usenet
  2. From: Barnett@interramp.com (Barnett E. Kurtz)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Windows Detection from DOS
  5. Date: Wed, 07 Feb 1996 13:37:10 GMT
  6. Organization: EntroData, Inc.
  7. Message-ID: <4fa73e$42s@usenet4.interramp.com>
  8. References: <4f6akt$q33@newsbf02.news.aol.com>
  9. Reply-To: Barnett@interramp.com
  10. NNTP-Posting-Host: ip214.philadelphia.pa.interramp.com
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. Kev,
  14.  
  15. Next time post questions like this in comp.os.ms-windows.programmer or
  16. comp.os.msdos.programmer. See also, the knowledge base at
  17. http://www.microsoft.com.
  18.  
  19. The function listed below _may_ work, I am not sure how MS identifies
  20. Win95/NT to this function. You will have to try it. Also, beware some
  21. memory managers hook 160A. In any case AX should return  non zero if
  22. Windows 386, Windows Enhanced is _not_  present. I don't know what it
  23. does with Windows 2.0/1.0.
  24. _____________________________________________________________
  25. INT 2F 160A - MS Windows 3.1 - IDENTIFY WINDOWS VERSION AND TYPE
  26.  
  27.  
  28. Category: W - MS Windows
  29.  
  30. Inp.:
  31.     AX = 160Ah
  32.  
  33. Return:    AX = 0000h if call supported
  34.      BX = version (BH=major, BL=minor)
  35.     CX = mode (0002h = standard, 0003h = enhanced)
  36.  
  37. SeeAlso: AX=1600h,AX=4680h INT 2F
  38.  
  39. Copied from Ralf Brown's Interrupt List
  40. ___________________________________________________________
  41. kevvance@aol.com (Kev Vance) wrote:
  42.  
  43. >I have Borland Turbo C++ 3.0.  I'm writing a game that cannot be run under
  44. >windows 3.x or '95.  How do I detect if windows is running?
  45.  
  46. >Thanx,
  47. >Kev
  48.  
  49. -
  50. barnett@interramp.com
  51. -
  52.  
  53.